package com.tiancheng.trade.authserver.vo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 应用登录授权
 */
@Getter
@Setter
@Accessors(chain = true)
public class ApplicationAccessTokenRequestVO {
    /**
     * 应用id
     */
    @NotBlank(message = "clientId can not be null")
    private String clientId;
    /**
     * 时间戳
     */
    @NotNull(message = "timestamp can not be null")
    private Long timestamp;
    /**
     * 随机数
     */
    @NotBlank(message = "rand can not be null")
    private String rand;
    /**
     * 签名
     */
    @NotBlank(message = "signature can not be null")
    private String signature;
}
